package org.jeecg.modules.demo.basepayorder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 充值订单
 * @Author: jeecg-boot
 * @Date: 2022-01-27
 * @Version: V1.0
 */
@Data
@TableName("base_pay_order")

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "base_pay_order对象", description = "充值订单")
public class BasePayOrder implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 订单编号
     */
    @Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单编号")
    private String orderCode;
    /**
     * 支付流水号
     */
    @Excel(name = "支付流水号", width = 15)
    @ApiModelProperty(value = "支付流水号")
    private String payCode;
    /**
     * 充值类型
     */
    @Excel(name = "充值类型", width = 15)
    @ApiModelProperty(value = "充值类型")
    private String rechargeType;
    /**
     * 充值金额
     */
    @Excel(name = "充值金额", width = 15)
    @ApiModelProperty(value = "充值金额")
    private Double rechargeAmount;
    /**
     * 客户姓名
     */
    @Excel(name = "客户姓名", width = 15)
    @ApiModelProperty(value = "客户姓名")
    private String memberName;
    /**
     * 客户电话
     */
    @Excel(name = "客户电话", width = 15)
    @ApiModelProperty(value = "客户电话")
    private String memberPhone;
    /**
     * 支付方式
     */
    @Excel(name = "支付方式", width = 15)
    @ApiModelProperty(value = "支付方式")
    private String payType;
    /**
     * 支付时间
     */
    @Excel(name = "支付时间", width = 15)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "支付时间")
    private Date payTime;
    /**
     * 提成归属
     */
    @Excel(name = "提成归属", width = 15)
    @ApiModelProperty(value = "提成归属")
    private String commissionOwner;
    /**
     * 提成归属id
     */
    @ApiModelProperty(value = "提成归属id")
    private String staffId;
    /**
     * 店铺id
     */
    @ApiModelProperty(value = "店铺id")
    private String storeId;

    private String name;
    private String memberId;
    private String stockId;
    private String payParamsStr;
    private String remark;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
